package net.roobook.auth;

import net.roobook.common.annotation.EnableRoobookAuthExceptionHandler;
import net.roobook.common.annotation.EnableRoobookLettuceRedis;
import net.roobook.common.annotation.EnableRoobookServerProtect;
import net.roobook.common.annotation.RoobookCloudApplication;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @Author Roobook
 * @description 认证服务器
 * @date 2022/4/7
 */
@EnableDiscoveryClient  // 开启服务注册与发现
@SpringBootApplication
// @EnableRoobookAuthExceptionHandler  //Enable注解实现资源服务器异常处理
// @EnableRoobookServerProtect // 使网关防护生效
@RoobookCloudApplication
@MapperScan("net.roobook.auth.mapper")      //将路径下的Mapper类都注册到IOC容器中
@EnableRoobookLettuceRedis
public class RoobookAuthApplication {
    public static void main(String[] args) {
        SpringApplication.run(RoobookAuthApplication.class, args);
    }
}
